<?php

namespace app\common\controller;
use think\Config;
use think\Controller;
use think\Hook;
use think\Lang;
use think\Session;
use think\Request;
/**
 * Api控制器基类
 */
class ApiController extends Controller
{
    public function _initialize()
    {
    	header('Access-Control-Allow-Origin: *');
    	header('Access-Control-Allow-Headers: Origin, X-Requested-With, Content-Type, Accept');
    	header('Access-Control-Allow-Methods: GET, POST, PUT,DELETE');
    	parent::_initialize();
    }
}